package day12.ReviewJUC;

/*
 * Author: JacksonCoder
 * FileName: NewThread
 * Version: 1.0.0
 * Date: 2025/4/22
 */

public class NewThread {

    public static void main(String[] args) {
        
        new Thread(()->{
            System.out.println("这是一个新线程 " + Thread.currentThread().getName());
        }).start();

        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("主线程");

    }
    
}
